﻿@model MvcCms.Data.Forum
@{
    ViewBag.Title = ViewData["PageTitle"];
    Layout = "~/RazorThemes/Default/Views/Shared/_Layout.cshtml";
}
@section HtmlHead{
<link href="@Url.Content("/RazorThemes/" + ViewData["SkinName"] + "/css/Forum.css")" rel="stylesheet" type="text/css" />
<style type="text/css">
    label.error
    {
        float: none;
        color: red;
        padding-left: .5em;
        vertical-align: top;
    }
</style>
}

    @if (ViewData.Model != null)
     { 
        <form method="post" action="@Url.Action("RemoveForum", "Forum", new { forumId = ViewData.Model.ForumID }) "
        class="forum-remove">
        Are you sure you want to remove this forum?
        <button type="submit" name="remove" value="yes" class="yes">
            yes</button>
        <button type="submit" name="remove" value="no" class="no">
            no</button>
        </form>
    }
    else
    {      
        <text>The forum has been removed.</text>    
    } 


    @Html.Partial("ControlsForum/AdminSidebar"); 

<script type="text/javascript" >
    LoadRecentPosts();
</script>

